package ug.co.icom.kyazze.healthticket;

import ug.co.icom.kyazze.healthticket.data.CustomListConnectionsAdapter;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

public class ConnectionsFragment extends Fragment {
	View rootView;

	public ConnectionsFragment() {
		// Empty constructor required for fragment subclasses
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		rootView = inflater.inflate(R.layout.connectionsactivity_layout2,
				container, false);
		return rootView;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		ListView list = (ListView) getActivity().findViewById(R.id.connectionsListView);	
        list.setAdapter(new CustomListConnectionsAdapter(getActivity(), 
        		MainActivity.connects(),null)); 
		//CustomListConnectionsAdapter
		super.onActivityCreated(savedInstanceState);
	}
	


}
